﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true"
    CodeFile="Items.aspx.cs" Inherits="Items" Title="飞扬四方-证书认证" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <!--

Title Under Menu

-->
    <body id="Items">
        <div id="pagetitle">
            培训项目</div>
        <div id="content-top-three-column">
        </div>
        <div id="content-container-three-column">
            <div id="content-side1-three-column">
                <h2>
                    <a href="Items.aspx">培训项目</a></h2>
                <asp:TreeView ID="TreeViewCategories" runat="server" ExpandDepth="0" LineImagesFolder="~/TreeLineImages"
                    LeafNodeStyle-CssClass="LeafNodesStyle" CssClass="TreeView" NodeStyle-CssClass="NodeStyle"
                    ParentNodeStyle-CssClass="ParentNodeStyle" RootNodeStyle-CssClass="RootNodeStyle"
                    SelectedNodeStyle-CssClass="SelectedNodeStyle" LeafNodeStyle-Width="100%" NodeStyle-Width="100%"
                    ParentNodeStyle-Width="100%" RootNodeStyle-Width="100%" SelectedNodeStyle-Width="100%"
                    ImageSet="Arrows">
                    <Nodes>
                        <asp:TreeNode Text="All Items" SelectAction="Expand" PopulateOnDemand="True" Value="All Items" />
                    </Nodes>
                    <%--<HoverNodeStyle ForeColor="RoyalBlue" />--%>
                    <HoverNodeStyle Font-Underline="True" ForeColor="#5555DD" />
                    <SelectedNodeStyle CssClass="SelectedNodeStyle" Width="100%" Font-Underline="True"
                        ForeColor="#5555DD" HorizontalPadding="0px" VerticalPadding="0px" />
                    <RootNodeStyle Font-Bold="True" Font-Size="Larger" HorizontalPadding="5px" CssClass="RootNodeStyle"
                        Width="100%" />
                    <ParentNodeStyle CssClass="ParentNodeStyle" Width="100%" Font-Bold="False" />
                    <LeafNodeStyle CssClass="LeafNodesStyle" Width="100%" />
                    <NodeStyle CssClass="NodeStyle" Width="100%" Font-Names="Tahoma" Font-Size="10pt"
                        ForeColor="Black" HorizontalPadding="5px" NodeSpacing="0px" VerticalPadding="0px" />
                </asp:TreeView>
            </div>
            <!--

  CENTER COLUMN

  -->
            <div id="content-main-three-column">
                <h2>
                    <asp:Label ID="LabelCurrentCategory" runat="server" Visible="true" Text=""></asp:Label></h2>
                <asp:Panel ID="PanelCategories" runat="server" Visible="true">
                    &nbsp;<asp:ObjectDataSource ID="ObjectDataSourceCategories" runat="server" SelectMethod="GetChildCategories"
                        TypeName="Catalog">
                        <SelectParameters>
                            <asp:QueryStringParameter Name="parentCategoryId" QueryStringField="catId" Type="string"
                                DefaultValue="" />
                        </SelectParameters>
                    </asp:ObjectDataSource>
                    <asp:GridView ID="GridViewCategories" runat="server" AutoGenerateColumns="False"
                        AllowPaging="true" PageSize="10" DataSourceID="ObjectDataSourceCategories" BorderWidth="0"
                        BorderColor="#E5ECF9" GridLines="None">
                        <Columns>
                            <asp:TemplateField>
                                <ItemTemplate>
                                    <%--<div  class="photo-shadow"><asp:Image ID="Image1" 
                                        CssClass="photo-border photo-float-left" runat="server" Width="200px"
                                    Height="160px" ImageUrl='<%# "images/" + (string)Eval("ImageUrl") %>' 
                                        AlternateText='<%#(string)Eval("ImageAltText")%>' /></div>--%>
                                    <b>
                                        <asp:HyperLink ID="HyperLink2" runat="server" NavigateUrl='<%# "Items.aspx?catId=" + (string)Eval("id") %>'> 
                                                                            <%# Eval("Title").ToString()%>
                                        </asp:HyperLink>
                                    </b>
                                    <br />
                                    <%#Eval("Description").ToString()%>
                                    <br />
                                    <br />
                                    <asp:HyperLink ID="HyperLink5" runat="server" ImageUrl="images/arrow.gif" NavigateUrl='<%# "Items.aspx?catId=" + (string)Eval("id") %>' />
                                    <asp:HyperLink ID="HyperLink4" runat="server" NavigateUrl='<%# "Items.aspx?catId=" + (string)Eval("id") %>'> 
                                    更多
                                    </asp:HyperLink>
                                    <hr />
                                </ItemTemplate>
                            </asp:TemplateField>
                        </Columns>
                        <PagerSettings Mode="NumericFirstLast" Position="TopAndBottom" />
                    </asp:GridView>
                </asp:Panel>
                <!-- Child Items -->
                <asp:Panel ID="PanelItems" runat="server" Visible="false">
                    <hr />
                    <asp:ObjectDataSource ID="ObjectDataSourceItems" runat="server" SelectMethod="GetChildItems"
                        TypeName="Catalog">
                        <SelectParameters>
                            <asp:QueryStringParameter Name="categoryId" QueryStringField="catId" Type="string"
                                DefaultValue="" />
                        </SelectParameters>
                    </asp:ObjectDataSource>
                    <asp:GridView ID="GridViewItems" runat="server" AutoGenerateColumns="False" AllowPaging="true"
                        PageSize="10" DataSourceID="ObjectDataSourceItems" OnRowCreated="GridViewItems_RowCreated"
                        BorderWidth="0" BorderColor="white" GridLines="None">
                        <Columns>
                            <asp:TemplateField>
                                <ItemTemplate>
                                    <%-- <div  class="photo-shadow"><asp:Image ID="Image1" CssClass="photo-border photo-float-left" runat="server" Width="150px"
                                    Height="100px" ImageUrl='<%# "images/" + (string)Eval("ImageUrl") %>' AlternateText='<%# (string)Eval("ImageAltText")%>' /></div>
                              --%>
                                    <h2>
                                        <asp:HyperLink ID="HyperLink2" runat="server" NavigateUrl='<%# "ItemDetail.aspx?itemId=" + (string)Eval("Id") %>'> 
                                                                            <%# Eval("Title").ToString()%>
                                        </asp:HyperLink></h2>
                                    <br />
                                    <!--  <%# Eval("Price","{0:C}")%>-->
                                    <br />
                                    <%# Eval("Description")%>
                                    <br />
                                    <!--<%#(bool)Eval("InStock") ? "Yes" : "No"%>-->
                                    <br />
                                    <img src="images/arrow.gif" alt="arrow" />
                                    <asp:HyperLink ID="HyperLink3" runat="server" NavigateUrl='<%# "ItemDetail.aspx?itemId=" + (string)Eval("Id") %>'> 
                                            更多
                                    </asp:HyperLink>
                                    <hr />
                                </ItemTemplate>
                            </asp:TemplateField>
                        </Columns>
                        <PagerSettings Mode="NumericFirstLast" Position="TopAndBottom" />
                    </asp:GridView>
                </asp:Panel>
            </div>
           
            <div class="clear">
            </div>
        </div>
        <div id="content-bottom-three-column">
        </div>
    </body>
</asp:Content>
